package org.xyl.game.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xyl.game.dao.PointDao;
import org.xyl.game.entity.Point;
import org.xyl.game.service.PointService;

@Service
public class PointServiceImpl implements PointService {
    @Autowired
    PointDao pointDao;

    @Override
    public boolean savePoint(Double acceleration) {
        Point point = new Point();
        point.setAcceleration(acceleration);
        pointDao.save(point);

        return true;
    }
}
